// 侧边栏目录
module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const CarouselSchema = new Schema({
    url: { type: String },
    createTime: {
      type: Date,
      default: Date.now
    },
    updateTime: {
      type: Date,
      default: Date.now
    }
  });
  return mongoose.model("Carousel", CarouselSchema);
};
